package com.suneee.trades.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.suneee.orm.GenericDao;
import com.suneee.orm.util.WhereClauseBuilder;
import com.suneee.trades.dao.OrderLogDao;
import com.suneee.trades.entity.OrderLog;

@Repository("orderLogDao")
public class OrderLogDaoImpl extends GenericDao<OrderLog, Integer>implements OrderLogDao{

	@Override
	public List<OrderLog> selectByTid(String tid) {
		WhereClauseBuilder sbf = new WhereClauseBuilder();
		sbf.equals("tid",tid);
		List<OrderLog> od = selectWhere(sbf.getSql(),sbf.getArgs());
		return od;
	}
}
